.class Lcom/netease/newsreader/activity/AccountSettingActivity$4;
.super Ljava/lang/Object;
.source "AccountSettingActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/AccountSettingActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/AccountSettingActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    .line 185
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "v"

    .prologue
    const/4 v5, 0x0

    .line 189
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 191
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    .line 194
    .local v2, tag:Ljava/lang/String;
    const-string v3, "sina"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 195
    const-string v3, "unbind"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 196
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/AccountSettingActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from oauth_list where oauth_type=\'sina\'"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    move-object v3, p1

    .line 198
    check-cast v3, Landroid/widget/Button;

    const-string v4, "\u7ed1\u5b9a"

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 199
    const-string v3, "sina_bind"

    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 200
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-static {v3}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 201
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    .line 202
    .local v0, cookieManager:Landroid/webkit/CookieManager;
    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    .line 290
    .end local v0           #cookieManager:Landroid/webkit/CookieManager;
    .end local v2           #tag:Ljava/lang/String;
    :cond_0
    :goto_0
    return-void

    .line 205
    .restart local v2       #tag:Ljava/lang/String;
    :cond_1
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    const-class v4, Lcom/netease/newsreader/weibo/WeiboLogin;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 206
    .local v1, intent:Landroid/content/Intent;
    const-string v3, "weibo_type"

    invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 208
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-virtual {v3, v1, v5}, Lcom/netease/newsreader/activity/AccountSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 211
    .end local v1           #intent:Landroid/content/Intent;
    :cond_2
    const-string v3, "qq"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 212
    const-string v3, "unbind"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 213
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/AccountSettingActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from oauth_list where oauth_type=\'qq\'"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    move-object v3, p1

    .line 215
    check-cast v3, Landroid/widget/Button;

    const-string v4, "\u7ed1\u5b9a"

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 216
    const-string v3, "qq_bind"

    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 217
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-static {v3}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 218
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    .line 219
    .restart local v0       #cookieManager:Landroid/webkit/CookieManager;
    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    goto :goto_0

    .line 234
    .end local v0           #cookieManager:Landroid/webkit/CookieManager;
    :cond_3
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    const-class v4, Lcom/netease/newsreader/weibo/WeiboLogin;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 235
    .restart local v1       #intent:Landroid/content/Intent;
    const-string v3, "weibo_type"

    const/4 v4, 0x1

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 236
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-virtual {v3, v1, v5}, Lcom/netease/newsreader/activity/AccountSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 239
    .end local v1           #intent:Landroid/content/Intent;
    :cond_4
    const-string v3, "netease"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 240
    const-string v3, "unbind"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 241
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/AccountSettingActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from oauth_list where oauth_type=\'netease\'"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    move-object v3, p1

    .line 243
    check-cast v3, Landroid/widget/Button;

    const-string v4, "\u7ed1\u5b9a"

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 244
    const-string v3, "netease_bind"

    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 245
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-static {v3}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 246
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    .line 247
    .restart local v0       #cookieManager:Landroid/webkit/CookieManager;
    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    goto/16 :goto_0

    .line 250
    .end local v0           #cookieManager:Landroid/webkit/CookieManager;
    :cond_5
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    const-class v4, Lcom/netease/newsreader/weibo/WeiboLogin;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 251
    .restart local v1       #intent:Landroid/content/Intent;
    const-string v3, "weibo_type"

    const/4 v4, 0x2

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 252
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-virtual {v3, v1, v5}, Lcom/netease/newsreader/activity/AccountSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 255
    .end local v1           #intent:Landroid/content/Intent;
    :cond_6
    const-string v3, "renren"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 256
    const-string v3, "unbind"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 257
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/AccountSettingActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from oauth_list where oauth_type=\'renren\'"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    move-object v3, p1

    .line 259
    check-cast v3, Landroid/widget/Button;

    const-string v4, "\u7ed1\u5b9a"

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 260
    const-string v3, "renren_bind"

    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 261
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-static {v3}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 262
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    .line 263
    .restart local v0       #cookieManager:Landroid/webkit/CookieManager;
    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    goto/16 :goto_0

    .line 266
    .end local v0           #cookieManager:Landroid/webkit/CookieManager;
    :cond_7
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    const-class v4, Lcom/netease/newsreader/weibo/WeiboLogin;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 267
    .restart local v1       #intent:Landroid/content/Intent;
    const-string v3, "weibo_type"

    const/4 v4, 0x3

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 268
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-virtual {v3, v1, v5}, Lcom/netease/newsreader/activity/AccountSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 271
    .end local v1           #intent:Landroid/content/Intent;
    :cond_8
    const-string v3, "ydnote"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 272
    const-string v3, "unbind"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 273
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    iget-object v3, v3, Lcom/netease/newsreader/activity/AccountSettingActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "delete from oauth_list where oauth_type=\'ydnote\'"

    invoke-virtual {v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    move-object v3, p1

    .line 275
    check-cast v3, Landroid/widget/Button;

    const-string v4, "\u7ed1\u5b9a"

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 276
    const-string v3, "ydnote_bind"

    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 277
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-static {v3}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 278
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    .line 279
    .restart local v0       #cookieManager:Landroid/webkit/CookieManager;
    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    goto/16 :goto_0

    .line 282
    .end local v0           #cookieManager:Landroid/webkit/CookieManager;
    :cond_9
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    const-class v4, Lcom/netease/newsreader/weibo/WeiboLogin;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 283
    .restart local v1       #intent:Landroid/content/Intent;
    const-string v3, "weibo_type"

    const/4 v4, 0x4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 284
    iget-object v3, p0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;->this$0:Lcom/netease/newsreader/activity/AccountSettingActivity;

    invoke-virtual {v3, v1, v5}, Lcom/netease/newsreader/activity/AccountSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0
.end method
